using UnityEngine;

public class JiangYouBall : PoolBall
{
	public override void Potted(PocketIndexes pocketIndex)
	{
		if ((bool)m_Rigidbody)
		{
			m_state = State.POTTED;
			m_Rigidbody.velocity = Vector3.zero;
			m_Rigidbody.angularVelocity = Vector3.zero;
			CloseRenderer();
			base.enabled = false;
			RemovePhysicalMaterial();
			GameStatistics.MarkPottedJiangyouBallCount(1);
		}
	}
}
